|
barometer2 2.2.0
|
This file contains API for Barometer 2 Click driver. More...
#include "drv_digital_in.h"#include "drv_i2c_master.h"Go to the source code of this file.
Data Structures | |
| struct | barometer2_t |
| Click ctx object definition. More... | |
| struct | barometer2_cfg_t |
| Click configuration structure definition. More... | |
Functions | |
| void | barometer2_cfg_setup (barometer2_cfg_t *cfg) |
| Config Object Initialization function. | |
| BAROMETER2_RETVAL | barometer2_init (barometer2_t *ctx, barometer2_cfg_t *cfg) |
| Initialization function. | |
| void | barometer2_default_cfg (barometer2_t *ctx) |
| Click Default Configuration function. | |
| void | barometer2_generic_write (barometer2_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
| Generic write function. | |
| void | barometer2_generic_read (barometer2_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
| Generic read function. | |
| void | barometer2_write_byte (barometer2_t *ctx, uint8_t reg, uint8_t data_bytes) |
| Write one byte function. | |
| uint8_t | barometer2_read_byte (barometer2_t *ctx, uint8_t reg) |
| Read one byte function. | |
| float | barometer2_get_temperature (barometer2_t *ctx, uint8_t temp_format) |
| Read temperature function. | |
| void | barometer2_software_reset (barometer2_t *ctx) |
| Reset function. | |
| float | barometer2_get_pressure (barometer2_t *ctx, uint8_t press_format) |
| Read pressure function. | |
| uint8_t | barometer2_get_interrupt (barometer2_t *ctx) |
| Gets interrupt. | |
This file contains API for Barometer 2 Click driver.